import * as url from '../constants/api';
import req from '@/utils/request';

// 获取员工的综合列表数据
export function getEmployeeList (params) {
    return req({
        method: 'GET',
        url: url.USER,
        params
    });
}
// 根据ID删除员工
export function delEmployee (id) {
    return req({
        method: 'DELETE',
        url: url.USERINFO + id,
    });
}
// 新增员工
export function addEmployee (params) {
    return req({
        method: 'POST',
        url: url.USER,
        data:params
    });
}
// 批量导入员工
export function importEmployee (params) {
    return req({
        method: 'POST',
        url: url.BATCH,
        data:params
    });
}